package com.shenmazong.controller;

import com.shenmazong.dto.TbJob;
import com.shenmazong.service.TbJobService;
import com.shenmazong.utils.ResultResponse;
import com.shenmazong.vo.BatchChooseIdVo;
import com.shenmazong.vo.ListParamVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 阿瑞
 * @version 1.0
 * @description TODO
 * @class TbJobController ???
 * @date 2021/9/21 18:34
 */
@RestController
@RequestMapping("job")
public class TbJobController {
    @Autowired
    private TbJobService tbJobService;
    @PostMapping("findAllStudent")
    public ResultResponse findAllStudent(@RequestBody ListParamVo listParamVo){
        return tbJobService.findAllStudent(listParamVo);
    }
    @PostMapping("saveJob")
    public ResultResponse saveJob(@RequestBody TbJob tbJob){
        return tbJobService.saveJob(tbJob);
    }
    @PostMapping("updateJob")
    public ResultResponse updateJob(@RequestBody TbJob tbJob){
        return tbJobService.updateJob(tbJob);
    }
    @PostMapping("deleteJob")
    public ResultResponse deleteJob(@RequestBody BatchChooseIdVo batchChooseIdVo){
        return tbJobService.deleteJob(batchChooseIdVo);
    }

}
